﻿#include "authority.h"

Authority::Authority(QObject *parent): QBaseEntity(parent)
{
    clear();
    const QMetaObject *metaObject = this->metaObject();
    setTableName(QString(metaObject->className()).toLower());
    setPrimaryKey("id");
}

Authority::~Authority()
{

}

uint64_t Authority::getId() const
{
    return id;
}

void Authority::setId(const uint64_t &value)
{
    id = value;
}

QString Authority::getName() const
{
    return name;
}

void Authority::setName(const QString &value)
{
    name = value;
}

QString Authority::getCode() const
{
    return code;
}

void Authority::setCode(const QString &value)
{
    code = value;
}

QString Authority::getDescription() const
{
    return description;
}

void Authority::setDescription(const QString &value)
{
    description = value;
}

uint64_t Authority::getParentId() const
{
    return parentId;
}

void Authority::setParentId(const uint64_t &value)
{
    parentId = value;
}

bool Authority::getStatus() const
{
    return status;
}

void Authority::setStatus(bool value)
{
    status = value;
}
